﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EzDesk.Utility
{
    public class GenericDictionary<T> where T : new()
    {
        private static T _instance;
        private static object _objLock = new object();
        public static T Instance
        {
            get
            {
                if(_instance == null)
                {
                    lock(_objLock)
                    {
                        if(_instance == null)
                            _instance = new T();
                    }
                }
                return _instance;
            }
        }
    }
}

